import axios from './index';

const opt = (options) => {
  if (!options.method) options.method = 'post';
  return axios({
    ...options,
    timeout: 80000,
  }).then((res) => res.data);
};

export default {
  // 获取淘宝服务器时间戳
  getTimestamp: () => opt({ url: '/taobao/rest/api3.do?api=mtop.common.getTimestamp', method: 'get' }),
};
